<!---
    |----------------------------------------------------------------------------------------------|
	| Parameter  | Required | Type    | Default | Description                                      |
    |----------------------------------------------------------------------------------------------|
	| name       | Yes      | string  |         | existing table name                              |
    |----------------------------------------------------------------------------------------------|

    EXAMPLE:
      t = changeTable(name='employees');
      t.string(columnNames="fullName", default="", null=true, limit="255");
      t.change();
--->
<cfcomponent extends="joey.cfwheels.plugins.dbmigrate.Migration" hint="add club reference on player table">
  <cffunction name="up">
    <cfscript>
    t = changeTable('players');
    t.references(referenceNames='club',polymorphic=true);
    //t.references(referenceNames='contact',polymorphic=true);
    t.change();
    </cfscript>
  </cffunction>
  <cffunction name="down">
    <cfscript>
    dropReference('players','club');
    </cfscript>
  </cffunction>
</cfcomponent>
